<%@ page language="java" import="java.util.*" import="java.sql.*" pageEncoding="utf-8"%>
<%@ page import="vo.Customer" %>
<% Customer customer=(Customer)session.getAttribute("customer");%>
<%!String cno6; %>
<% 
		String driverClass6="com.mysql.jdbc.Driver";
	    String url6="jdbc:mysql://localhost:3306/vote?useSSL=false";
	    String user6="root";
	    String password6="womenilu2580";
	    Class.forName(driverClass6);
	    Connection conn6=DriverManager.getConnection(url6,user6,password6);
	    Statement stat6=conn6.createStatement();	 
	    String sql6="select cno from t_customer where cname='"+customer.getCname()+"'";
	    ResultSet rs6=stat6.executeQuery(sql6);
	    while(rs6.next()){  
	    cno6=rs6.getString("cno");  
	    }  
	    %>
  <div class="logo"><a href="show.jsp"><img src="img/logo.jpg"height="50px" width="100px"/></a></div>
  <!-- top -->
    <div class="top">
    	<div class="banner"><img src="img/3.jpg" width="980px" height="150px"/></div>
    	<div class="options">
    		<div class="home"><a href="customerPage.jsp?cno=<%=cno6%>"> <%=customer.getCname() %></a></div>
    		<div class="shu"><a>|</a></div>
    		<div class="fav"><a href="loginForm.jsp">退出</a></div>
    	</div>
    </div>